import request from "@/lib/ajax";

// 注册
// export  const  register = (data) =>{
//   return request({
//       url: 'api/user/register',
//       method:"post",
//       data: JSON.stringify({
//         id_card: data.id,
//         password:data.password,
//         phone_number:data.phoneNumber,
//         real_name:data.name,
//         verify_code:data.verify_code
//       })
//   })
// }

export const selectUserInfo  = (root,password) => {
  return  request({
    url: '/login',
    method:"POST",
    params:({
      root : root,
      password:password
    }),
    
  })
} 
// 上传文件
export const upload = (file) => {
  return request({
    url:'/upload',
    method:"post",
    params:({
      file : file
    })
  })
}


